#include <unistd.h>
#include <stdio.h>
#include <signal.h>

static void sig_handler (int signuum ) 
{
    printf("Hello\n");
    sleep(10);
    printf("World\n");
    signal (SIGINT, sig_handler);
}

int main() 
{    
    signal (SIGINT, sig_handler);   
  
    while (1) 
    {
        pause ();
    }
    
    return 0 ;
}

